import { ApiProperty } from '@nestjs/swagger';
import { IsNumber, IsOptional, IsString } from 'class-validator';

export class CreateCarModelDto {
  @ApiProperty({
    description: '品牌型号id',
  })
  @IsOptional()
  brand_id: number;

  @ApiProperty({
    description: '型号名称',
  })
  @IsString()
  name: string;

  @ApiProperty({
    description: '名称首字母',
  })
  @IsString()
  first_letter: string;
}
